Languages with C/C++ output [closed]

Posted by Vag on Programmers See other posts from Programmers or by Vag
Published on 2011-11-27T14:52:27Z Indexed on 2011/11/27 18:04 UTC
Read the original article Hit count: 241

Which languages have compilers able to emit plain standard C/C++ code?

For a start:

  • Haxe // uses Boehm GC

  • Haskell (JHC)

  • Haskell (old GHC) // -fvia-c, removed recently (emitted code is super ugly)
  • Clay
  • ATS
  • Cython
  • RPython (Shed Skin) // experimental
  • RPython (PyPy)
  • Python (Nuitka) // although author claims there are no speedups
  • Common Lisp (ECL)
  • COBOL (OpenCobol)
  • Scheme (Chicken)
  • APL // So far I've not found working implementation available for free download
  • Ur/Web // GCC-specific output, and intended to be used only for web developments (included for completeness only)

I'd like to build comprehensive up-to-date list but found only these ones so far.

I've tested only Haxe and it works pretty well and quite fast. What about other ones? What is your expirience? How much ugly is generated code?

Update. Any language chains (e.g. X -> Scheme -> C) will be perfectly OK as answer if its use is practical enough and suited for production use.

© Programmers or respective owner

Related posts about programming-languages

Related posts about code-generation